package com.softeem.score.manager.mapper;

import com.softeem.score.model.dto.TeacherDto;
import com.softeem.score.model.entity.school.Teacher;
import com.softeem.score.model.vo.school.MapVo;
import com.softeem.score.model.vo.school.TeacherVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhu
 * @since 2024-02-14
 */
public interface TeacherMapper {

    List<TeacherVo> findByPage(TeacherDto teacherDto);

    List<MapVo> findAll();

    void saveTeacher(Teacher teacher);

    void updateTeacher(Teacher teacher);

    void deleteById(@Param("teacherId") Long teacherId);

    List<MapVo> findAllByCollegeId(@Param("collegeId") Long collegeId);

    List<MapVo> findTeacherByCourseId(@Param("courseId") Long courseId);
    
    void deleteByTeacherNumber(String teacherNumber);

    Integer findTeacherByTeacherNumber(String teacherNumber);

    Teacher findById(Long id);
}
